package com.ocom.common.entity.human;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "person_tag_relation")
public class EntityPersonTagRelation implements Serializable {
    private static final long serialVersionUID = 4989071416657184187L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long comId;
    @JsonProperty("pId")
    private Long pId;
    private Integer tagId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private Long deptId;

    @JsonProperty("pName")
    @TableField(exist = false)
    private String pName;

    @JsonProperty("pCode")
    @TableField(exist = false)
    private String pCode;

    @JsonProperty("deptName")
    @TableField(exist = false)
    private String deptName;

}
